<h1>Select a group to leave</h1>

<table>
<tr>
	<th>Leave Group</th>
	<th>Group name</th>
</tr>

<?php foreach ($student_groups as $key => $group):?>
<tr>
	<?php $address = 'group/leave_group/leave/' . $group['group_id'];?>
	<td><a href="<?php echo site_url($address); ?>">Leave Group</a></td>
	<td><?php echo $group['group_name'];?></td>
</tr>
<?php endforeach ?>